import { MyHttpProxy } from "../api"
import store from "../store"

class VSConfig{

    static async sync_pull_remote_config(){
        /**
         * 拉取远端配置
         */
        let res = await MyHttpProxy.post('/config/get')
        store.state.user.setting = res.data
    }

    static async sync_push_local_config(){
        /**
         * 通过本地配置到云端
         */
        await MyHttpProxy.post('/config/set', store.state.user.setting)
    }

}


export {
    VSConfig
}